<body>
<script>
var ws = new WebSocket('ws://192.168.157.21:1337/game');
  
ws.onopen = function() {
    console.log('onopen - connected!'); }

ws.onmessage = function() {
	console.log('onmessage');
}

ws.onclose = function() {
	console.log('onclose');
}
</script>
</body>